<HTML>
<SCRIPT  type="text/javascript">
function MyComponentTestGo() 
{
	try 
	{
		netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
		
		const cid = "@Ooganizer.com/OoganizerPlugin;1";
		
		// This works
		//const cid = "@mozilla.org/toolkit/profile-migrator;1";

		obj = Components.classes[cid].createInstance();

		obj = obj.QueryInterface(Components.interfaces.IOoganizerPlugin);
		
		alert("daniel is great");
	        var res = obj.Add(1,5);
	        //alert("daniel is still great");

	        alert('Performing 1+5. Returned ' + res + '.');

	} catch (err) {
		alert(err);
		return;
	}		
}
</SCRIPT>
<head>
<title>Doris loves to go out and Fish many fresh fish</title>
</head>
<BODY>
<BUTTON ONCLICK="MyComponentTestGo();" id="go">Go</BUTTON>
<input id="test" value="" />
</BODY>
</HTML>

